package com.diandian.backend.kuaishou.life.task.controller;

import com.diandian.backend.kuaishou.life.task.service.BusinessRefreshTokenCheckService;
import com.diandian.base.boot.starter.response.BaseResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/test/refresh/token")
public class RefreshTokenCheckTestController {

    private static final Logger logger = LoggerFactory.getLogger(RefreshTokenCheckTestController.class);

    @Autowired
    private BusinessRefreshTokenCheckService refreshTokenCheckService;

    /**
     * refresh token检查
     */
    @GetMapping( "/check")
    public BaseResult refreshTokenCheck() {
        refreshTokenCheckService.refreshTokenCheck();
        return new BaseResult(0, "success", null);
    }

}
